package lb.io.options;

public class ClientOptions {
    // lblet 唯一名称
    private String name;
    // apiserver 集群IP:Port
    private String endpoints;
    // 数据交互格式
    private String contentType;
    // grpc 连接超时时间
    private int timeout;
    // 存储路径
    private String backStore;
    // keepalive 间隔时间
    private int keepaliveDuration;
    // keepalive 超时时间
    private int keepaliveTimeout;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEndpoints() {
        return endpoints;
    }

    public void setEndpoints(String endpoints) {
        this.endpoints = endpoints;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public String getBackStore() {
        return backStore;
    }

    public void setBackStore(String backStore) {
        this.backStore = backStore;
    }

    public int getKeepaliveDuration() {
        return keepaliveDuration;
    }

    public void setKeepaliveDuration(int keepaliveDuration) {
        this.keepaliveDuration = keepaliveDuration;
    }

    public int getKeepaliveTimeout() {
        return keepaliveTimeout;
    }

    public void setKeepaliveTimeout(int keepaliveTimeout) {
        this.keepaliveTimeout = keepaliveTimeout;
    }

    @Override
    public String toString() {
        return "ClientOptions{" +
                "name='" + name + '\'' +
                ", endpoints=" + endpoints +
                ", contentType='" + contentType + '\'' +
                ", timeout=" + timeout +
                ", backStore='" + backStore + '\'' +
                ", keepaliveDuration=" + keepaliveDuration +
                ", keepaliveTimeout=" + keepaliveTimeout +
                '}';
    }
}
